.customer-detail-wrapper {
  height: calc(100vh - 92px);
  box-sizing: border-box;
  padding: 12px;

  .customer-detail {
    height: 100%;
    display: flex;
    background-color: #fff;

    .customer-info {
      width: 300px;
      height: 100%;

      :deep(.el-card) {
        height: calc(100% - 24px);
      }

      .box-card {
        margin: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;

        .card_user {
          display: flex;
          align-items: center;
          flex-direction: column;
          padding: 10px;
          padding-top: 20px;

          .basic-info {
            display: flex;
            width: 210px;
            flex-direction: column;
            align-items: center;
            
            .info {
              box-sizing: border-box;
              width: fit-content;

              .name,
              .phone {
                display: flex;
                width: fit-content;

                .label {
                  white-space: nowrap;
                }
              }

              .name {
                padding: 10px 0 5px;
                font-size: 14px;
              }

              .phone {
                font-size: 12px;
                color: #999;
                padding: 2px 0 5px;
              }
            }

            .tip {
              display: flex;
              justify-content: center;
            }
          }
    
          .img_user {
            width: 108px;
            height: 108px;
            border-radius: 10px;
          }
    
          .image-slot {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            background: #f5f7fa;
            color: #909399;
            font-size: 40px;
          }
    
          .statistics {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 20px;
            column-gap: 20px;

            .statistics-item {
              display: flex;
              align-items: center;
              column-gap: 10px;
    
              .icon {
                background-color: #2684ff1f;
                color: #007cff;
                padding: 10px;
              }
    
              .txt {
                display: flex;
                justify-content: space-between;
                flex-direction: column;
                height: 100%;
    
                .num {
                  font-size: 14px;
                }
    
                .title {
                  font-size: 12px;
                  white-space: nowrap;
                  color: #999;
                }
              }
            }
          }
        }
    
        .header {
          border-bottom: 1px solid #e5e5e5;
    
          h6 {
            font-size: 14px;
          }
        }
    
        .btn_edit {
          padding: 20px;
          display: flex;
          column-gap: 10px;
          justify-content: center;
        }
    
        .form_list {
          padding-right: 10px;
    
          :deep(.el-form-item__label) {
            font-size: 12px;
            color: #000;
          }
    
          :deep(.el-form-item__content) {
            font-size: 12px;
            color: #999;
          }
        }
      }
    }

    .body {
      width: calc(100% - 300px);
      height: 100%;
      box-sizing: border-box;
      padding: 0 12px 12px 0;

      :deep(.el-tabs) {
        height: 100%;

        .el-tabs__header {
          margin: 0;
          padding:  0 0 12px 0;
        }

        .el-tabs__content {
          width: 100%;
          height: calc(100% - 51px);

          .el-tab-pane {
            height: 100%;

            .contact_person {
              height: 100%;
              display: flex;
              flex-direction: column;
              row-gap: 5px;

              .header {
                display: flex;
                justify-content: space-between;

                .btn_group {
                  display: flex;
                  column-gap: 5px;
                }

                .search {
                  display: flex;
                  column-gap: 5px;
                }
              }

              .table {
                max-height: calc(100% - 66px);
              }

              .pagination {
                display: flex;
                justify-content: flex-end;
              }
            }

            .connect_product,
            .connect_order {
              height: 100%;
              display: flex;
              flex-direction: column;
              row-gap: 5px;

              .table {
                max-height: calc(100% - 33px);
              }

              .pagination {
                display: flex;
                justify-content: flex-end;
              }
            }

            .known_storeroom {
              height: 100%;
              display: flex;
              flex-direction: column;
              row-gap: 5px;

              .header {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .visible_role {
                  display: flex;
                  align-items: center;
                  column-gap: 5px;
                }
              }

              .table {
                max-height: calc(100% - 33px);
              }
            }
          }
        }
      }
    }
  }
}

.select_header {
  display: flex;
  column-gap: 5px;
}

// 编辑公司弹窗
.edit_customer_modal_form_content {
  display: grid;
  grid-template-columns: repeat(2, auto);
  padding: 0 32px;
  row-gap: 12px;
  column-gap: 64px;

  :deep(.el-form-item) {
    .el-form-item__label {
      height: 16px;
      line-height: 16px;
      margin: 0 0 3px 0;
    }

    .el-form-item__content {
      .el-form-item__error {
        margin: 0;
      }

      .el-select {
        max-width: unset;
      }
    }
  }
}

// 公司附件面板
.customer_annex {
  display: flex;
  flex-direction: column;
  row-gap: 5px;

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .btn_group {
      display: flex;
      column-gap: 5px;
    }
  }

  :deep(.el-upload) {
    .el-upload-dragger {
      padding: 0;
      width: 80px;
      height: 50px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
  }

  .files {
    display: flex;
    column-gap: 12px;
    flex-wrap: wrap;
    row-gap: 12px;

    .file {
      display: flex;
      flex-direction: column;

      .file_name {
        display: block;
        width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
}

.known_panel {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;

  .visible_role {
    display: flex;
  }
}

.look_type {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  .look_item {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
  }
}

.app-container {
  height: 100%;
}

.btn_sc {
  text-align: end;
  // margin-bottom: 10px;

  .btn_save {
    width: 3.2vw;
  }

  .btn_cancel {
    width: 3.2vw;
  }
}

:deep(.el-select) {
  width: 100% !important;
  max-width: 300px;
}

.image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--el-fill-color-light);
  color: var(--el-text-color-secondary);
  font-size: 30px;
}

.image-slot .el-icon {
  font-size: 30px;
}

.look-dialog {
  .look_type {
    height: 60vh;
    overflow-y: auto;
    padding: 12px;

    .look_item {
      margin-bottom: 24px;

      .look_name {
        padding-bottom: 8px;
        color: #000;
        font-size: 14px;
      }

      .look_img {
        margin-left: 22px;
        margin-top: 6px;
      }
    }
  }
}

.main {
  display: flex;
  background-color: #fff;
  flex: 1;
  height: 100%;

  :deep(.el-aside) {
    display: flex;
    flex-direction: column;
  }

  :deep(.el-card) {
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }

  :deep(.el-card__body) {
    padding: 0 !important;
  }

  

  .el-main {
    --el-main-padding: 0px;
    margin-left: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;

    .list_tabs {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 0px 14px 14px 0;

      .tabs_height {
        display: flex;
        flex-direction: column;
        flex: 1;

        :deep(.el-tabs__header) {
          padding: 0 0 12px 0;
          margin: 0;
        }

        :deep(.el-tabs__content) {
          display: flex;
          flex-direction: column;
          flex: 1;

          .el-tab-pane {
            flex: 1;
            display: flex;
            flex-direction: column;
          }
        }
      }

      .header {

        .mr5 {
          margin-right: 5px;
        }

        .btn {
          display: flex;
          align-items: center;
        }

        .search {
          .input-width {
            width: 150px;
          }
        }
      }

      .cont-table {
        :deep(.el-form-item__label) {
          display: none;
        }
      }

      .footer {
        display: flex;
        justify-content: flex-end;
      }

      .hover_hidden {
        display: none;
      }
    }

    .relevant_data {
      border: 1px solid #e4e7ed;
      padding: 10px;
      border-radius: 2px;
      box-shadow: 0 0 12px #0000001f;
      margin-top: 18px;

      .title_top {
        border-left: #007cff solid 3px;
        padding-left: 5px;
        font-size: 14px;
        margin-left: 10px;
        margin-top: 5px;
      }

      .ul_data {
        display: flex;
        align-items: center;
        margin-top: 18px;
        margin-bottom: 10px;
        margin-left: 10px;
        overflow-x: auto;

        .li_data {
          display: flex;
          align-items: center;
          justify-content: space-between;
          background-color: #f4f6fa;
          margin-right: 20px;
          border-radius: 2px;
          padding: 5px 10px;
          height: 50px;
          width: 100px;

          .icon_img {
            border-radius: 50%;
            background-color: #fff;
            padding: 10px;
          }

          .li_right {
            margin-left: 10px;
            flex: 1;
            font-size: 12px;
            width: 60px;

            p {
              line-height: 20px;
              white-space: nowrap;
            }

            .blue {
              color: #007cff;
              margin-right: 4px;
            }
          }
        }
      }
    }

    .upload_file {
      .tip_text {
        margin-bottom: 2px;
        font-size: 14px;
        line-height: 16px;
      }

      :deep(.el-upload-dragger) {
        padding: 0;
        padding-bottom: 10px;
      }

      .up_icon {
        color: #ccc;
        font-size: 24px;
      }

      .ul_list {
        display: flex;
        max-height: 230px;
        overflow-y: auto;
        justify-content: space-between;
        flex-wrap: wrap;

        .li_item {
          display: flex;
          justify-content: space-between;
          align-items: center;
          border: 1px solid #e4e7ed;
          padding: 4px 10px;
          width: calc(50% - 30px);
          color: #999;
          font-size: 12px;
          margin-top: 10px;

          .li_item_left {
            display: flex;
            align-items: center;

            .pic_name {
              margin-left: 10px;
              color: #007cff;
              margin-right: 5px;
            }
          }
        }
      }
    }
  }
}

.my-header {
  h3 {
    color: #000;
    font-size: 14px;
  }
}

:deep(.add-dialog) {
  .el-form-item {
    margin-bottom: 18px;

    .input-width {
      width: 300px;
    }
  }

  .el-dialog__body {
    padding: 12px 20px;
  }

  .btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 25px;
    margin-bottom: 10px;

    .btn_save {
      width: 60px;
    }

    .btn_cancel {
      width: 60px;

      &:hover {
        border: 1px solid #e5e5e5;
        color: #999;
        background-color: #e5e5e5;
      }
    }
  }
}

.btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 25px;
  margin-bottom: 10px;

  .btn_save {
    width: 60px;
  }

  .btn_cancel {
    width: 60px;

    &:hover {
      border: 1px solid #e5e5e5;
      color: #999;
      background-color: #e5e5e5;
    }
  }
}
